<%@ page import="java.util.Arrays" %><%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2024/1/21
  Time: 16:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>application对象</title>
</head>
<body>
<%
  // session容器对象 A B C
  application.setAttribute("A", "abc");
  application.setAttribute("B", 8.9);
  application.setAttribute("C", Arrays.asList("aa", "bb", "cc"));
  application.setAttribute("A", "abcd");
  // 删除容器的内容
  application.removeAttribute("B");
  // 获取容器的内容
  Object a = application.getAttribute("A");
  Object b = application.getAttribute("B");
  Object c = application.getAttribute("C");
  out.print(a + "<br/>");
  out.print(b + "<br/>");
  out.print(c + "<br/>");
%>
</body>
</html>